/* =========================================
   Lead Modal
========================================= */

.lead-modal,
.lead-modal *,
.lead-modal *::before,
.lead-modal *::after {
  box-sizing: border-box;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  font-family: var(--font-sans, inherit);
  color: #ffffff;
}

.lead-modal.is-open,
.lead-modal[aria-hidden="false"] {
  display: block;
}

.lead-modal[aria-hidden="true"] {
  display: none;
}

/* Isola o modal dos estilos globais do base.css */
.lead-modal h1,
.lead-modal h2,
.lead-modal h3,
.lead-modal h4,
.lead-modal h5,
.lead-modal h6,
.lead-modal p,
.lead-modal span,
.lead-modal label {
  color: inherit;
}

.lead-modal p,
.lead-modal h1,
.lead-modal h2,
.lead-modal h3,
.lead-modal h4,
.lead-modal h5,
.lead-modal h6 {
  margin-top: 0;
}

.lead-modal button,
.lead-modal input,
.lead-modal textarea,
.lead-modal select {
  font: inherit;
}

.lead-modal .btn,
.lead-modal .btn--gradient,
.lead-modal .btn--whatsapp {
  box-shadow: none;
}

.lead-modal .btn--gradient::before,
.lead-modal .btn--gradient::after,
.lead-modal .btn--whatsapp::before,
.lead-modal .btn--whatsapp::after {
  content: none !important;
  display: none !important;
}

html.is-modal-open .float-whatsapp,
html.is-modal-open .wpp-bar,
body.is-modal-open .float-whatsapp,
body.is-modal-open .wpp-bar {
  display: none !important;
}

/* =========================================
   Overlay
========================================= */

.lead-modal__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 14%, rgba(140, 0, 255, 0.18), transparent 34%),
    rgba(7, 10, 22, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* =========================================
   Dialog
========================================= */

.lead-modal__dialog {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(430px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: none;
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 0%, rgba(140, 0, 255, 0.22), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(127, 0, 177, 0.24), transparent 38%),
    linear-gradient(145deg, #151b33 0%, #11182e 48%, #171126 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  isolation: isolate;
}

.lead-modal__dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 38%),
    linear-gradient(315deg, rgba(140, 0, 255, 0.16), transparent 48%);
}

.lead-modal__dialog::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
}

/* =========================================
   Close
========================================= */

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 160ms var(--ease, ease),
    background-color 160ms var(--ease, ease),
    border-color 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease);
}

.lead-modal__close::before,
.lead-modal__close::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.lead-modal__close::before {
  transform: rotate(45deg);
}

.lead-modal__close::after {
  transform: rotate(-45deg);
}

.lead-modal__close:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30);
}

.lead-modal__close:active {
  transform: translateY(0);
}

.lead-modal__close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.30);
}

/* =========================================
   Header
========================================= */

.lead-modal__head {
  padding: 28px 28px 10px;
  padding-right: 78px;
}

.lead-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.lead-modal__eyebrow i,
.lead-modal__eyebrow svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.lead-modal__title {
  margin: 0;
  max-width: 12ch;
  color: #ffffff !important;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.lead-modal__desc {
  margin: 12px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 14.5px;
  line-height: 1.55;
}

/* =========================================
   Form
========================================= */

.lead-modal__form {
  padding: 14px 28px 28px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lead-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.lead-field,
.lead-modal__field {
  display: block;
  width: 100%;
  margin: 0;
  color: #ffffff;
}

.lead-field > span,
.lead-modal__field > span,
.lead-field__label {
  display: block;
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.lead-field input,
.lead-field textarea,
.lead-field select,
.lead-modal__field input,
.lead-modal__field textarea,
.lead-modal__field select,
.lead-modal input[type="text"],
.lead-modal input[type="tel"],
.lead-modal input[type="email"],
.lead-modal textarea,
.lead-modal select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.115);
  color: #ffffff !important;
  padding: 13px 15px;
  font: inherit;
  font-size: 15px;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 28px rgba(0, 0, 0, 0.10);
  transition:
    border-color 160ms var(--ease, ease),
    background-color 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease),
    transform 160ms var(--ease, ease);
}

.lead-field textarea,
.lead-modal__field textarea,
.lead-modal textarea {
  min-height: 98px;
  resize: vertical;
  line-height: 1.45;
}

.lead-field input::placeholder,
.lead-field textarea::placeholder,
.lead-modal__field input::placeholder,
.lead-modal__field textarea::placeholder,
.lead-modal input::placeholder,
.lead-modal textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.lead-field input:focus,
.lead-field textarea:focus,
.lead-field select:focus,
.lead-modal__field input:focus,
.lead-modal__field textarea:focus,
.lead-modal__field select:focus,
.lead-modal input:focus,
.lead-modal textarea:focus,
.lead-modal select:focus {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.lead-modal select option {
  color: #0b1220;
}

.lead-modal__actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.lead-modal__submit,
.lead-modal button.lead-modal__submit,
.lead-modal .lead-modal__submit.btn,
.lead-modal .lead-modal__submit.btn--gradient {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 50px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  color: #ffffff !important;
  background: var(--g-brand, linear-gradient(90deg, #7f00b1 0%, #8c00ff 52%, #7f00b1 100%)) !important;
  box-shadow:
    0 18px 42px rgba(140, 0, 255, 0.28),
    0 12px 28px rgba(0, 0, 0, 0.22);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.01em;
  transition:
    transform 160ms var(--ease, ease),
    filter 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease),
    opacity 160ms var(--ease, ease);
}

.lead-modal__submit::before,
.lead-modal__submit::after {
  content: none !important;
  display: none !important;
}

.lead-modal__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04) saturate(1.04);
  box-shadow:
    0 22px 52px rgba(140, 0, 255, 0.34),
    0 14px 34px rgba(0, 0, 0, 0.26);
}

.lead-modal__submit:active {
  transform: translateY(0);
}

.lead-modal__submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.18),
    0 22px 52px rgba(140, 0, 255, 0.34);
}

.lead-modal__submit[disabled],
.lead-modal__submit[aria-busy="true"] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  filter: none;
}

.lead-modal__submit i,
.lead-modal__submit svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.lead-modal__note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.60) !important;
  font-size: 12.5px;
  line-height: 1.45;
}

.lead-modal__status {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================
   Animation
========================================= */

.lead-modal.is-open .lead-modal__overlay,
.lead-modal[aria-hidden="false"] .lead-modal__overlay {
  animation: leadOverlayIn 180ms var(--ease, ease) both;
}

.lead-modal.is-open .lead-modal__dialog,
.lead-modal[aria-hidden="false"] .lead-modal__dialog {
  animation: leadModalIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes leadOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes leadModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

html.is-modal-open,
body.is-modal-open {
  overflow: hidden;
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 560px) {
  .lead-modal__overlay {
    background:
      radial-gradient(circle at 78% 8%, rgba(140, 0, 255, 0.18), transparent 32%),
      rgba(7, 10, 22, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .lead-modal__dialog {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: auto;
    width: auto;
    max-height: calc(var(--lead-vvh, 100vh) - 24px);
    border-radius: 24px;
  }

  .lead-modal__head {
    padding: 22px 18px 8px;
    padding-right: 64px;
  }

  .lead-modal__eyebrow {
    margin-bottom: 12px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .lead-modal__title {
    max-width: 11ch;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .lead-modal__desc {
    margin-top: 9px;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .lead-modal__form {
    padding: 10px 18px 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }

  .lead-modal__grid {
    gap: 10px;
  }

  .lead-field > span,
  .lead-modal__field > span,
  .lead-field__label {
    margin-bottom: 5px;
    font-size: 12.5px;
  }

  .lead-field input,
  .lead-field textarea,
  .lead-field select,
  .lead-modal__field input,
  .lead-modal__field textarea,
  .lead-modal__field select,
  .lead-modal input[type="text"],
  .lead-modal input[type="tel"],
  .lead-modal input[type="email"],
  .lead-modal textarea,
  .lead-modal select {
    min-height: 47px;
    border-radius: 15px;
    padding: 12px 14px;
    font-size: 16px;
  }

  .lead-field textarea,
  .lead-modal__field textarea,
  .lead-modal textarea {
    min-height: 88px;
  }

  .lead-modal__close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .lead-modal__close::before,
  .lead-modal__close::after {
    width: 15px;
  }

  .lead-modal__submit,
  .lead-modal button.lead-modal__submit,
  .lead-modal .lead-modal__submit.btn,
  .lead-modal .lead-modal__submit.btn--gradient {
    min-height: 50px;
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .lead-modal__dialog {
    left: 10px;
    right: 10px;
    top: 10px;
    max-height: calc(var(--lead-vvh, 100vh) - 20px);
    border-radius: 22px;
  }

  .lead-modal__head {
    padding: 18px 16px 6px;
    padding-right: 60px;
  }

  .lead-modal__form {
    padding: 8px 16px 16px;
  }

  .lead-modal__title {
    font-size: 24px;
  }
}

/* =========================================
   Motion Preference
========================================= */

@media (prefers-reduced-motion: reduce) {
  .lead-modal__overlay,
  .lead-modal__dialog,
  .lead-modal__close,
  .lead-modal__submit,
  .lead-modal input,
  .lead-modal textarea,
  .lead-modal select {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================
   Custom Cursor acima do modal
========================================= */

.cursor,
.cursor-dot,
.cursor-ring,
.cursor-follower,
.custom-cursor,
.mouse-cursor,
.mouse-follower,
.cb-cursor,
.mf-cursor,
[data-cursor-dot],
[data-cursor-follower] {
  z-index: 100005 !important;
  pointer-events: none !important;
}

html.is-modal-open .cursor,
html.is-modal-open .cursor-dot,
html.is-modal-open .cursor-ring,
html.is-modal-open .cursor-follower,
html.is-modal-open .custom-cursor,
html.is-modal-open .mouse-cursor,
html.is-modal-open .mouse-follower,
html.is-modal-open .cb-cursor,
html.is-modal-open .mf-cursor,
html.is-modal-open [data-cursor-dot],
html.is-modal-open [data-cursor-follower],
body.is-modal-open .cursor,
body.is-modal-open .cursor-dot,
body.is-modal-open .cursor-ring,
body.is-modal-open .cursor-follower,
body.is-modal-open .custom-cursor,
body.is-modal-open .mouse-cursor,
body.is-modal-open .mouse-follower,
body.is-modal-open .cb-cursor,
body.is-modal-open .mf-cursor,
body.is-modal-open [data-cursor-dot],
body.is-modal-open [data-cursor-follower] {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 100005 !important;
}